<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Zend_View_Helper_GetAllLinhasHTML
 *
 * @author desenvolvimento01
 */
class Zend_View_Helper_GetAllCoresLI extends Zend_View_Helper_Abstract {

    public function getAllCoresLI() {
        $cores = new Application_Model_DbTable_Cores();
        $retorno = NULL;

        foreach ($cores->getAllCores() as $cor) {
            $retorno .="
                <li value=\"{$cor->getIdCores()}\">
                  <a href=\"#\" style=\"background: {$cor->getHex()};\" title=\"{$cor->getNomeCor()}\"></a>
               </li> \n";
        }
        return $retorno;
    }

    /**
     * Sets the view field
     * @param $view

      Zend_View_Interface
     */
    public function setView(Zend_View_Interface $view) {
        $this->view = $view;
    }

}

?>
